package cre.spring.javaconfig3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author guchenbo
 * @Date 2019/4/20.
 */
public class AppBoot {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("application3.xml");
        Foo foo = context.getBean("foo", Foo.class);
        foo.say();
    }
}
